Tomáš Pospíšek's Notizblock
Resetting USB Bus and rescanning Devices
Sometimes, when I plug in my TrekStor external USB drive into my computer, it just won't show up.
The solution is to "rebind" the driver (I guess) to the USB bus:
$ ls /sys/bus/pci/drivers/xhci_hcd/
0000:19:00.0 bind module new_id remove_id uevent unbind
# echo 0000:19:00.0 > /sys/bus/pci/drivers/xhci_hcd/unbind
# echo 0000:19:00.0 > /sys/bus/pci/drivers/xhci_hcd/bind
Now my storage shows up properly on the usb bus:
$ lsusb -t
[...]
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
|__ Port 2: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M
I found the solution via the zedt.eu blog. Many thanks to Zedt.
Tomáš Pospíšek, 2017-09-16